moved event handelar to init to clean up loadData method. Also preparing to add sorting functionality
moved event handelar to init to clean up loadData method. Also preparing to add sorting functionality