fix persistent grahpics on reload a file

new app handler in node_s