mvc modularity
(also fixed view issue on windows #983)