modify self.html and add self logic