added main and login view