Refactored start and stop record event handlers