Modified to read the menu UI