Fixed the table initialization problem.
Now the table is initialized if and when the datasests tab is visible.