coding p4 table to hmtl