fixed improper setting of refresh menuitem