add sessionstorage feature to receive msg when it is not chat page