main view build optimization