solve repeating same date header bug in gui