made sure the buttons don't repeat