added loginview and mainview