Fixed bug with UI hanging when switchin to profile view and back