Duplicated code in initMenu removed