wire up header footer and main body