Separated out html and json responses for no data available.
Added date checking functionality, alert user if date is in the future.