- fixed a bug where units loaded to jsTree were not displaying properly due to wrong database id being passed to php page in an ajax call
- some code included to load the root unit when the user goes from view mode to editor mode