add main controll template