making button not clickable twice