reformatted table to use html method, added date2str method in utils