tweaks main.js for loading and sign in view.