adjust the page height after selecting a top type