adds main nav controller and detail login views.