added GUI number checking