Comment all the old codes.
Move notification functions into one handler.