function of record/stop
working on alert with textfield