image button for changing the state