paints tables using a better way to use maps
tables are painted by the Mesa class.
Fixing table select....