Modified to move common footer to main template.
Modified main template to also put padding on top and bottom.