Added fallback function when no menu assigned