adding header and data to form