Add output form and footer