move layout code to config.js
Login position is automate