added timing functionality in view and model for activities.