Added ability to change dates in view