added start and stop recording