added script to views