Added command stack stuff to gui lib