Finished edit/update th action as per sami's recommendation