implemented editResource in Store