Added index controller and view, fixed content preview error