optimize ChatFragment and NewFriendsFragment