added next scheduled activity and last completed activity