fixed contextMenu + persistence
added threshold persistence