Add error checking. Replaced Next button with Done button in sampleRate editText