Adds hiding code to hide navigation when using the template to begin with