changed how to handle script parameter on view, now is a class parameter