Add context aware change handling for file state module