Added helkper to get selected rows