fixed problem with getting module views, shutdown function added