added logic to remove status bar and main bar without the graph