move module view template listener to module directory
tidy up view resolver