add save/new_post ajax function