reorganize saveinputs, use jquery deferred to manage notification, closes #24