modified how dates are passed between views