main view completed