get nav working correctly