create dropdown and update dropdown when a category is created