reorder engine.js methods
Refactoring and reorder engine.js code.
Now change in map model will be update directly to engine's map objects
Implement the new IF statement
fixed the delete button which did not appear when the changes were moved to template view
implemented the new if command. old bug of selected option not appearing in command workspace still present.
Merge remote-tracking branch 'origin/gps-workspace' into engin
integrate IF with workspace