seperate the stop and save functions in RecordActivity.