Update views_factory.js