Added the Play and Record functionality to button.