change history modal code