modified rolodex and loginDialog to extend a base class, routerAwareDialog