change findTabById() into a method