deal with overflowing tables and add source to detail view