Corrected integration of 3d viewer