Fixed the compile errors for view.example.