Added observer for the gui