add table version to appointment and modify UI show