trying to stay DRY with categories.php