Implemented edit selected row.