Add Window VisibilityChanged Event