added functionality to jtable