add functions to dynamically fix the table height/width