Made buttons to respond on click