switching views to globally apply
global application for js