pd: Update gui checkbox state when closing and opening pd window