update main, init_category
add function to display tables