fix bug with selected element

Element stay selected after updating friends list