removing unused files, updated checking for hide_in_nav