Passing intervals to callback

Passing start and end intervals to onIntervalChange callback