fix navbar and pager

added controller for navbar so that it is self-aware and collapses/opens
properly. changed pager layout for smaller screens