clean up and tweak route when notepad is opened