completed main view