disable buttons sometimes