added the add controller into the main view