add  main controller