fixed issue where the application would crash when the newPractice button was clicked.