Added the add method for the controller