-added the invokeLater to the observer update method