use cheaper data structure for main_*

change data structure for getting main menu category and main menu device