cleanup of HTML control system