Menu dynamically creating code