- Fixed issue #4 where the tab bar was misplaced after a rotation of the device

- Code cleanup here and there