Added hooks to change dates for analytics