additions to #589: the UI listeners need adjustments too

I forgot that the listener functions also need some adjustments.

Note: maybe we want to merge contactProfile and mucProfile? It's not really good to have the same code twice.