improve date handleing. now displays correctly on main. now can add/update date on record