add localmainView structure
should try this