Added factory for the menu module