Adding logic to prevent accidental closing of folder on item reload, and automatic closing of folder on item move.