Add modal dialog for editing snippets