added an if statement to prevent an unnecessary scope date and slider update when setting the dates via the slider