Update ButtonFunctions.js