added LoginManager.js and some layout definitions