Buttons button partially working