added bounds checking to NurseGUI