added a first version of the 3d preview