Use input text boxes to set custom range

- do not change the input boxes when the cursor is over calendar date
- enable the input boxes when they or custom range option is clicked
- revert to old values when dates are invalid