moves partial view to constructor function.