add active and focus states to buttons