Better way of navigating to the table

Signed-off-by: Michal Čihař <michal@cihar.com>
Factor out table navigation code

Signed-off-by: Michal Čihař <michal@cihar.com>
More reliable navigation to table

Signed-off-by: Michal Čihař <michal@cihar.com>