Finish adding edit functionality