create main view presentation logic