Added WindowListener