added the start of main controller