Added expandPageNav and collapsePageNav functions

Also removed outdated cookie stuff we don't need