added session variable to update time stamps
created templates to separate time updates