Resume recording implemented if navigated to new page
Refactor a little bit