Moved SetWindowsEvents to end of ToggleVisibiltyForAllTitleElements