added stop record functionality