Add cancel button to exit from recording