edit main view