added the table and its header to another div