file clean up and graphic update