Added api loader
Added login dialog