Initial implementation of the edit functionality