Fix alive thread bug

rename
BasicPage1 -> ChatPage
FriendsManagerPage -> FriendsSearchPage
and fix problems with background alive thread