New version with schedule detaild and all history tables fix