bug fixing for canceling save panel