added refresh controller and activityviewcontroller