added activities and pagination