changed CGrectGetMaxX to CGRectGetMaxY, to get actual header height, not width