fix bugs in time series, some CSS reorganization