code style and support for multiple orientations and camera toggle