Created an action to return distinct categories