added editcategory, instead of adding properties to the firebase object like parent and count, i get them dynamically instead so i dont have to delete them before saving