implemented width/height properties for window