indented code
attempted to fix bug with navigation