added script in controller