- fixed a bug where preview function of subordinates in definition elements were not working properly
- erased some debugging statements to clean up the code