Icon states management

Add TemplateTags.getMenuItems support and icon states management.