HTML macro for table and other cleanup