Since we are using ``categories`` for events and  ``functional_areas`` for profiles I suggest changing the ``selected_categories`` variable.