Adding model transformation menu command and supporting code