fix for scroll misplacement and configurable number of tables implemented