Implemented snippet modification functioanlity

- Fixed some visualization bugs on snippet preview