fix how environment matches extensions of view files.
fetch session manager from application container.