fixing some table display issues