main view finished