added property to store whether window is visible