fixed input checking with new substances, fixed file saving error, fixed cancel new system error