fixed the view and js