refresh func for log table