Template_Main convert to table for responsive layout