add getter method for selected index path.