add table control function

show past 4 days data in paginated table, differentiate ideal/non-ideal
in colors