added edit mode to transformation