add main controller