Action selection as a guide for visual attention