updating the gui

need to think of a way of using the unpack