set whether direct or not
if direct - wait for the ajax response before saving