added preview controller.