Using a new document change event and a timeout to handle the panel update