Sorting out navbar, setting up modal dialog