added border between header and body tables, fixed some bugs