fixed duplicate button press bug