few bug fixes

fix input form close crash
done button saves input