Added ability for custom callback function from date selector