Added factory to main view for dynamically loading main view's copy.