Added registeredname value.
Added viewcontrol generator.
Removed redundant code.