refactored views with nav links