Make beautiful legend and datatable