add script to the view
add script to the view