modify two table with adding thead and tbody, added class option in popover dialog