menu link logic