Use bounds property to set window size

Use bounds property to set window size