better menu link code structure