Sorting out submenu rendering