fixed save, callback was passed from click event handler