create mainController with read, create and delete