fix history layout