Add check for referrer from the menu module