added option to hide the navigation bar - default no