Removed legacy code from permalink cad viewer