add ajax support for add/edit snippet/blog