Added iview.prototype.createRepresentationSub to save duplicate code
Added createRepresentation() to save duplicate code