Refactor CustomMenuRenderer