worked on table row selected