Friend window, with some other changes