modify Activity exit process and add chart file to src folder