main view almost complete