Added status bar visibility
Removed extraneous code