added navigation menu, first and last functionality