onCreate event used to create crud controller