make state visible in menuitem