update code snippets ui