generating table with post