Implemented snippet add & edit