extended to use entire window