better view for cloning, fixed some class cloning bugs