Reference fix

Have included reftree.js into create/edit layout in order to use
references;