Adding actions for deleting and editing words.