Added dialog confirm for cancelling recording.
Refactored the code, reorganised it to be more logical.
Changed the way the application moves between activities.