Clear documents lists before entering/exiting edit mode