removing temporary files on save