Added selected date tracker and refactored binding