added viewer->refreshCB and refreshData