changed the button codes