change handlemessage logic

remove messagechan