Updated doc viewer to work with base controller