a few code improvements
create view for detecting table with id and related elements
Merge pull request #16 from katmutua/master

detect table and row elements using id's