Added Async classes and login dialog