fixed issue with 'remove view' contextmenu item