graph clear and restore HTML work