Added examples of window listeners