refactored the add controller, removed the hard coded request delay, instead used promises