build auth and root view