updated changes
Updated NotiDetector, DialogWindow and Pined DialogWindow to make them work better