record functionality added to the project with the record button clicked