changed so that unit isn't deselected every action