add selected class to button