fixed frozen GUI caused by popups
fixed client crash on removing friends. Closes #1077