mobile dropdown menu, moved functions to functions.js file