Fixed crashing bug
Program would crash when no table selection was made and the View button
was pressed