Refac tbl columns definitions

extracted all code producing html code to methods