passed correct cat data for addNewCat function