Move navigation click handler to document (outside body)