refactored so the sizes are for the positions are set in the headerFooterLayouts configurations