Removed HTML from createSubmenu function. All the HTML code is now in the smarty template.