added 2 items in settings:
1) screen orientation
2) screen turn on/off
some more refactoring