update table classes and buttons