Fine tuned table sorting styles and fixed bugs