implemented notifications in chat