Added selectedRow concept