add new repository and changed old

Refactored _Layouts/RenderAction
Add Repository and Interface MainView