update canvas and window with last compiling version