moving row outside header and footer templates