adding an option to hide the status bar