add snippets for select and switch