update button callback function in quest.js

but still has some bugs