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