Updated "update" method in GUI to receive message