refine code, add add/modify time for view