add new js file and adjust controller