Fix: save HTML page when app close. Added replacing HTML text when it is save