Made subcategory dropdown functional