Moving the create and update actions to the magic controller.