Refactored navigation bar, added 500 page.