generate view registered in autofac