adding edit submission functionality