table attribute fixes and admin.php fixes