we have add registrator method in the mainframeview and add it to the mainframeview