added snippet update ajax
edit snippet fully functional