add view snippet