Several more fixes to function calls in new Class structure. Also temporarily disabled jquery ui dialog's modal property. Not working correctly.