commented buttom logic