updated version of snippets app with optional search function