content of table and heading display based on input time and other option fixed, create update function