checkTimesheet() and setInterval() was being called twice