adding functionaly to buttons so they can choose