update control.js

changed tree order