on buttons for record and play