adding some function to welcome.js