Add initialize functions and login view
change index.html to load login view