partial implementation of didSelectRow