Before splitting matrix into separate html pages