fixed dashboard  insert/update