Created even listeners for buttons