view and main js changed