modify notification mech. Still not work because cannot detect if window is focused

now chatroom recommendation and retrieve can work