Added row selection function with intent