created observer class to update the realtime displays in the gui