Implemented basic preview controller.