fixed data refreshing after edit