wired up loginview and loading view