modify notification and sideBar show&dismiss logic

modify notification and sideBar show&dismiss logic