Add mainControl class in view layer