add max-height to history page