Avoid using getComponent for side effects and add method to select rows by ID