added edit functionality for snippets