main controller added