XSLT and Mode refactoring
CreateMode and EditMode fixed?