working buttons checking