added dll to handle the state of the menu entry