Added a helper to show and hide the location bar
Code cleanup