adding in sorting and main navs