added new handler for overflowing tables and other content