init viewer for study