detect table and row elements using id's