updating controllers and script

updating controllers and scripts