changed from get to post and combined header and footers