draw the page size before opening