Fixed menu script for touch devices and login/logout link.