setup form and output