Changed template to support foundation 4