Hiii Sandeep,
U should increase the height of the MAIN window or U should decrease the height of MAIN window then Empty row will disappear.
and about the footer u have to place the COMMAND for fixed line item on the first page i.e. if u have 10 line items in main window then only five will display on first page with footer and next five will display on next page.