added override of _prepareModel to format attributes into header and footer parts