fix date population on edit event