close menu upon link click + logger object to enable/disable console logging