added code to rearrange only the diagram nodes created from the template
Authored by: samantprajakta 2013-08-12
Parent: [r1168]
Child: [r1170]