fix snippet options and preview routing errors
Merge pull request #433 from colvint/master

fix snippet options and preview routing errors