clean up code by making functions for adding tags and categories to an item