cleaning, refactoring a bit, adding support for ios7 statusbar