Fixed stage orientation bug when user navigates to different views
Clean up code
Implement auto-generated name for sketch according to user's existing sketches
Implemented handling of online/offline switches during operation