code cleanup.  extracted all click handlers for list table and put them in one function