Menu listeners

More changes to the main page including buttons with event handlers in
logout.js (TODO: change to main.js)