adding an argument to show/hide the pagebar