first working version with using jquery custom event
add oncellselect
some cleanup