added js and response for menu