added fixes and historic leyend checkboxes